package exception;

import java.io.FileOutputStream;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/3/9
 **/
public class TryCatchDemo {
    public static void main(String[] args) {
        System.out.println("开始了");
        try {
            String l=null;
            System.out.println(l.length());
        } catch (NullPointerException e) {
            System.out.println("解决了");
        }


        System.out.println("结束了");
    }
}
